* import "wong-et-al-perspectives-data.csv"


. tab lang

   language |      Freq.     Percent        Cum.
------------+-----------------------------------
    English |         18        3.52        3.52
    Spanish |        494       96.48      100.00
------------+-----------------------------------
      Total |        512      100.00

. ttest dv1, by(treatment)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     267    .4456929    .0304756    .4979754    .3856888     .505697
       1 |     245    .0979592    .0190301     .297868     .060475    .1354434
---------+--------------------------------------------------------------------
combined |     512    .2792969    .0198473    .4490925    .2403046    .3182892
---------+--------------------------------------------------------------------
    diff |            .3477337    .0366684                 .275694    .4197734
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   9.4832
Ho: diff = 0                                     degrees of freedom =      510

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000

. ttest dv2, by(treatment)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     267    .5093633    .0306516    .5008511    .4490127    .5697139
       1 |     245    .1714286    .0241275    .3776545    .1239039    .2189533
---------+--------------------------------------------------------------------
combined |     512    .3476563     .021067    .4766919    .3062676    .3890449
---------+--------------------------------------------------------------------
    diff |            .3379347    .0394731                .2603849    .4154846
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   8.5611
Ho: diff = 0                                     degrees of freedom =      510

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000

. ttest dv3, by(treatment)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     267    .3670412    .0295532     .482903    .3088533    .4252291
       1 |     245    .0816327    .0175285    .2743647    .0471061    .1161592
---------+--------------------------------------------------------------------
combined |     512    .2304688    .0186298    .4215447    .1938683    .2670692
---------+--------------------------------------------------------------------
    diff |            .2854085    .0351263                .2163986    .3544185
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   8.1252
Ho: diff = 0                                     degrees of freedom =      510

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000

. ttest dv4, by(treatment)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     267    .3820225    .0297913    .4867944    .3233656    .4406793
       1 |     245    .0897959    .0183022    .2864744    .0537455    .1258463
---------+--------------------------------------------------------------------
combined |     512    .2421875    .0189516    .4288262    .2049548    .2794202
---------+--------------------------------------------------------------------
    diff |            .2922266    .0357028                .2220839    .3623692
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   8.1850
Ho: diff = 0                                     degrees of freedom =      510

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000

. ttest dv5, by(treatment)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     267    .3220974    .0286508    .4681576    .2656862    .3785085
       1 |     245    .0612245    .0153479    .2402324    .0309932    .0914557
---------+--------------------------------------------------------------------
combined |     512    .1972656    .0176036    .3983237    .1626813    .2318499
---------+--------------------------------------------------------------------
    diff |            .2608729    .0333292                .1953936    .3263522
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   7.8272
Ho: diff = 0                                     degrees of freedom =      510

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000

. logit dv1 treatment iv1 iv2 interact1 interact2

Iteration 0:   log likelihood =  -300.6651  
Iteration 1:   log likelihood = -258.63613  
Iteration 2:   log likelihood = -255.49871  
Iteration 3:   log likelihood =  -255.3193  
Iteration 4:   log likelihood = -255.31733  
Iteration 5:   log likelihood = -255.31733  

Logistic regression                             Number of obs     =        507
                                                LR chi2(5)        =      90.70
                                                Prob > chi2       =     0.0000
Log likelihood = -255.31733                     Pseudo R2         =     0.1508

------------------------------------------------------------------------------
         dv1 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   treatment |  -1.889269   .3341486    -5.65   0.000    -2.544188   -1.234349
         iv1 |   -.407702   .3516624    -1.16   0.246    -1.096948    .2815436
         iv2 |   .2122652   .2522654     0.84   0.400    -.2821659    .7066963
   interact1 |  -1.341537   1.093618    -1.23   0.220    -3.484988    .8019135
   interact2 |  -.0206373    .507357    -0.04   0.968    -1.015039    .9737642
       _cons |  -.2265857   .1729619    -1.31   0.190    -.5655848    .1124134
------------------------------------------------------------------------------

. logit dv2 treatment iv1 iv2 interact1 interact2

Iteration 0:   log likelihood =   -327.976  
Iteration 1:   log likelihood =  -289.7824  
Iteration 2:   log likelihood = -288.43646  
Iteration 3:   log likelihood = -288.41226  
Iteration 4:   log likelihood = -288.41221  
Iteration 5:   log likelihood = -288.41221  

Logistic regression                             Number of obs     =        507
                                                LR chi2(5)        =      79.13
                                                Prob > chi2       =     0.0000
Log likelihood = -288.41221                     Pseudo R2         =     0.1206

------------------------------------------------------------------------------
         dv2 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   treatment |  -1.441236   .2790958    -5.16   0.000    -1.988253   -.8942178
         iv1 |  -.7161222   .3519311    -2.03   0.042    -1.405895   -.0263499
         iv2 |   .2625423   .2533262     1.04   0.300     -.233968    .7590526
   interact1 |   -.502846   .7162137    -0.70   0.483    -1.906599    .9009071
   interact2 |   -.366154   .4369208    -0.84   0.402    -1.222503    .4901951
       _cons |   .0614805   .1720097     0.36   0.721    -.2756522    .3986133
------------------------------------------------------------------------------

. logit dv3 treatment iv1 iv2 interact1 interact2

Iteration 0:   log likelihood = -275.08193  
Iteration 1:   log likelihood = -243.34747  
Iteration 2:   log likelihood = -240.67554  
Iteration 3:   log likelihood = -240.53546  
Iteration 4:   log likelihood = -240.53467  
Iteration 5:   log likelihood = -240.53467  

Logistic regression                             Number of obs     =        507
                                                LR chi2(5)        =      69.09
                                                Prob > chi2       =     0.0000
Log likelihood = -240.53467                     Pseudo R2         =     0.1256

------------------------------------------------------------------------------
         dv3 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   treatment |  -1.667715   .3459394    -4.82   0.000    -2.345744   -.9896866
         iv1 |  -.1634938   .3575535    -0.46   0.647    -.8642858    .5372983
         iv2 |   .1209191   .2583858     0.47   0.640    -.3855079     .627346
   interact1 |  -1.363821   1.099511    -1.24   0.215    -3.518823    .7911817
   interact2 |  -.2456949   .5548915    -0.44   0.658    -1.333262    .8418725
       _cons |    -.54102   .1780403    -3.04   0.002    -.8899726   -.1920673
------------------------------------------------------------------------------

. logit dv4 treatment iv1 iv2 interact1 interact2

Iteration 0:   log likelihood = -280.90966  
Iteration 1:   log likelihood = -248.53448  
Iteration 2:   log likelihood = -245.78712  
Iteration 3:   log likelihood = -245.64007  
Iteration 4:   log likelihood = -245.63903  
Iteration 5:   log likelihood = -245.63903  

Logistic regression                             Number of obs     =        507
                                                LR chi2(5)        =      70.54
                                                Prob > chi2       =     0.0000
Log likelihood = -245.63903                     Pseudo R2         =     0.1256

------------------------------------------------------------------------------
         dv4 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   treatment |  -1.689008    .354715    -4.76   0.000    -2.384237   -.9937791
         iv1 |   .0346001   .3497898     0.10   0.921    -.6509753    .7201755
         iv2 |   .3036674   .2567538     1.18   0.237    -.1995607    .8068956
   interact1 |   -1.68794   1.095233    -1.54   0.123    -3.834558     .458678
   interact2 |   .0578511   .5208987     0.11   0.912    -.9630916    1.078794
       _cons |  -.6016978   .1791321    -3.36   0.001    -.9527903   -.2506053
------------------------------------------------------------------------------

. logit dv5 treatment iv1 iv2 interact1 interact2

Iteration 0:   log likelihood = -253.14852  
Iteration 1:   log likelihood = -223.75725  
Iteration 2:   log likelihood = -220.85052  
Iteration 3:   log likelihood = -220.73959  
Iteration 4:   log likelihood = -220.73898  
Iteration 5:   log likelihood = -220.73898  

Logistic regression                             Number of obs     =        507
                                                LR chi2(5)        =      64.82
                                                Prob > chi2       =     0.0000
Log likelihood = -220.73898                     Pseudo R2         =     0.1280

------------------------------------------------------------------------------
         dv5 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   treatment |   -1.68831       .384    -4.40   0.000    -2.440936   -.9356839
         iv1 |  -.0510186    .365657    -0.14   0.889    -.7676932    .6656561
         iv2 |   .2742378   .2655322     1.03   0.302    -.2461956    .7946713
   interact1 |  -1.141975   1.110682    -1.03   0.304    -3.318872    1.034922
   interact2 |  -.4768683   .6251233    -0.76   0.446    -1.702088     .748351
       _cons |  -.8264776   .1861996    -4.44   0.000    -1.191422   -.4615331
------------------------------------------------------------------------------

. 
